﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Dynamo
{
    public class Script
    {
        public Script(string Path)
        {
            this.Path = Path;
        }
        public string Path { get; set; }
        public string DisplayName { get { 
            System.IO.FileInfo fi = new System.IO.FileInfo(Path);
            return fi.Name.Replace(fi.Extension, "");
        } }
        public string Source { get { return System.IO.File.ReadAllText(Path); } }
        public override string ToString()
        {
            return DisplayName;
        }
    }
}